package com.itheima.jdk8date;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 方法名说明public LocalDate  toLocalDate ()转换成为一个LocalDate对象
 * public LocalTime toLocalTime ()转换成为一个LocalTime对象
 */
public class Test03 {


    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalTime localTime = now.toLocalTime();
        LocalDate localDate = now.toLocalDate();
        System.out.println(now);
        System.out.println(localTime);
        System.out.println(localDate);//xxxx年 xx月 xx日
    }
}
